<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Platform-NG</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<!-- styles -->
<link rel="stylesheet" type="text/css" href="../../../../assets/common/jquery-easyui/themes/custom/easyui.css">
<link rel="stylesheet" type="text/css" href="../../../../assets/common/jquery-easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="../../../../assets/common/jquery-easyui-custom/easyui.custom.css">
<!-- icon -->
<link rel="icon" type="image/x-icon" href="../../../../assets/common/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="../../../../assets/common/favicon.ico" />
<!-- scripts -->
<script type="text/javascript" src="../../../../assets/common/jquery-easyui/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../../../../assets/common/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../../../assets/common/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../../../assets/common/jquery-easyui-custom/easyui.custom.js"></script>
<script type="text/javascript" src="../../../../assets/common/framework.js"></script>
<!-- JSON2 -->
<!--[if lt IE 8]>
<script type="text/javascript" src="../../../../assets/common/json-js/json2.js"></script>
<![endif]-->
<!-- page scripts -->
<script type="text/javascript" src="../../../../assets/admin/system/org/list.js"></script>
</head>

<body>
	<!-- 主页面 -->
	<div class="easyui-layout" data-options="fit:true">
		<!-- 左树 -->
		<div data-options="region:'west',title:'组织机构',split:true" style="width:180px;padding: 8px">
			<ul class="easyui-tree" id="tree"></ul>
		</div>
		<!-- 列表 -->
		<div data-options="region:'center',border:false">
			<table id="dg-list" data-options="title:'机构信息列表',toolbar:'#tb-list'"></table>
			<!-- 菜单 -->
			<div id="tb-list">
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="dlg_add()">新增</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="dlg_edit()">修改</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="func_del()">删除</a>
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="func_reload()">刷新</a>
				<!-- 搜索框 -->
				<input id="searchbox" class="easyui-searchbox" data-options="width:200,searcher:search,prompt:'请输入查询内容',menu:'#searchMenu'">
				<div id="searchMenu">
					<div data-options="name:'nameLike'">机构名称</div>
					<div data-options="name:'serialNumLike'">机构编码</div>
					<div data-options="name:'workPlaceLike'">工作地点</div>
					<div data-options="name:'leaderLike'">负责人</div>
					<div data-options="name:'contactLike'">联系电话</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 新增 -->
	<div id="dlg-add" class="easyui-dialog" style="width:400px;padding:20px 30px;top:30px;"
		data-options="title:'新增',closed:true,buttons:'#dlg-btn-add',modal:true">
		<form id="fm-add" method="post">
			<input type="hidden" id="pid-add" />
			<div style="text-align: center;">
				<table style="border-width:0;" align="center">
					<tr>
						<td style="text-align: right;">父机构：</td>
						<td><input type="text" id="pname-add" disabled="disabled" value="无" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">机构名称：</td>
						<td><input type="text" name="name" class="easyui-textbox" data-options="required:true,validType:['length[0, 10]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">机构编码：</td>
						<td><input type="text" name="serialNum" class="easyui-textbox" data-options="validType:['length[0, 10]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">工作地点：</td>
						<td><input type="text" name="workPlace" class="easyui-textbox" data-options="validType:['length[0, 50]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">负责人：</td>
						<td><input type="text" name="leader" class="easyui-textbox" data-options="validType:['length[0, 10]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">联系电话：</td>
						<td><input name="contact" class="easyui-textbox" data-options="validType:['length[0, 20]']" /></td>
					</tr>
				</table>
			</div>
		</form>
		<div id="dlg-btn-add">
			<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="func_add()">确定</a>
			<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="$('#dlg-add').dialog('close');">取消</a>
		</div>
	</div>
	<!-- 修改 -->
	<div id="dlg-edit" class="easyui-dialog" style="width:400px;padding:20px 30px;top:30px"
		data-options="title:'修改',closed:true,buttons:'#dlg-btn-edit'">
		<form id="fm-edit" method="post">
			<input type="hidden" id="id-edit" />
			<input type="hidden" id="pid-edit" name="parentId" />
			<div style="text-align: center;">
				<table style="border-width:0;" align="center">
					<tr>
						<td style="text-align: right;">父机构：</td>
						<td><input type="text" id="pname-edit" disabled="disabled" value="无" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">机构名称：</td>
						<td><input type="text" name="name" class="easyui-textbox" data-options="required:true,validType:['length[0, 10]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">机构编码：</td>
						<td><input type="text" name="serialNum" class="easyui-textbox" data-options="validType:['length[0, 10]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">工作地点：</td>
						<td><input type="text" name="workPlace" class="easyui-textbox" data-options="validType:['length[0, 50]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">负责人：</td>
						<td><input type="text" name="leader" class="easyui-textbox" data-options="validType:['length[0, 10]']" /></td>
					</tr>
					<tr>
						<td style="text-align: right;">联系电话：</td>
						<td><input type="text" name="contact" class="easyui-textbox" data-options="validType:['length[0, 20]']" /></td>
					</tr>
				</table>
			</div>
		</form>
		<div id="dlg-btn-edit">
			<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="func_edit()">确定</a>
			<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="$('#dlg-edit').dialog('close');">取消</a>
		</div>
	</div>
</body>
</html>
